#include <stdio.h>

int main() {
	
	int rem_4 , rem_100 , rem_400 ;
	int year ;
	char ans ;
	
	startover :
	
	printf("enter the year that you wants to cheak\n");
	scanf("%d", &year);
	
	rem_4 = year % 4 ;
	rem_100 = year % 100 ;
	rem_400 = year % 400 ;
	
	if ((rem_4 == 0 && rem_100 != 0) || rem_400 == 0) {
			printf("the year %d is leap\n", year);
	}
	
	else 
		printf("the year is not leap\n") ;	 

	printf("would you like to start over (Y/N) ?\n");
	scanf(" %c", &ans);
	
	if ( ans == 'Y')
		goto startover;	

	getchar();
	return 0;
}

